package com.dzjcloud.dzj.upms.api.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 客户端(Client)表实体类
 *
 * @author makejava
 * @since 2022-01-04 17:26:34
 */
@ApiModel("客户端表")
@Data
public class Client extends Model<Client> {

    //主键
    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    //客户端名称
    @ApiModelProperty("客户端名称")
    private String name;

    //客户端编号
    @ApiModelProperty("客户端编号")
    private String code;

    //授权URL
    @ApiModelProperty("授权URL")
    private String authUrl;

    //是否启用
    @ApiModelProperty("是否启用")
    private Integer isEnable;

    //是否删除
    @ApiModelProperty("是否删除")
    @TableLogic
    private Integer isDelete;

    //创建时间
    @ApiModelProperty(value = "创建时间", name = "createTime")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //创建人用户ID
    @ApiModelProperty(value = "创建人用户ID")
    @TableField(fill = FieldFill.INSERT)
    private String createUserId;

    //更新时间
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    //更新人用户ID
    @ApiModelProperty(value = "更新人用户ID")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUserId;


}

